/*
 * Copyright (c) 2011 Jean-Marc Perronne
 * Ensisa, 12 rue des Freres Lumieres, F-68093 Mulhouse cedex
 * All rights reserved.
 *
 * The copyright of this software is owned by Werner Randelshofer. 
 * You may not use, copy or modify this software, except in  
 * accordance with the license agreement you entered into with  
 * Jean-Marc Perronne. For details see accompanying license terms. 
 */

package fr.uha.ensisa.jmp.drone.navdata.options;

import java.io.PrintStream;


public class NavdataDemoDumper implements OptionsVistor
{
	PrintStream out;
	
	public NavdataDemoDumper()
	{
		this(System.out);
	}
	
	public NavdataDemoDumper(PrintStream out)
	{
		this.out=out;
	}

	@Override
	public void visitNavdataDemo(NavdataDemo data)
	{
		this.out.println();

		//this.out.print("battery :"); this.out.print(data.vbat_flying_percentage);
		
		//this.out.print(" theta(pitch) :"); this.out.print(data.theta/1000);
		//this.out.print(" phi(roll):"); this.out.print(data.phi/1000);
		//this.out.print(" psi(yaw):"); this.out.print(data.psi/1000);
		
		//this.out.print(" altitude :"); this.out.print(data.altitude);

		this.out.print(" vx :"); this.out.print(data.vx);
		this.out.print(" vy :"); this.out.print(data.vy);
		this.out.print(" vz :"); this.out.print(data.vz);		
	}

	@Override
	public void visitVisionDetect(VisionDetect navdataVisionDetect)
	{		
	}

}
